package test.com.crazymaker.springcloud.message;

import org.junit.Test;

public class IdTester {

    @Test
    public void testBadMod() {
        for (int i = 0; i < 128; i++) {
            int id = 1000 + i;
            System.out.print("id = " + id);
            System.out.print("    id%2 = 库" + id % 2);
            System.out.print("    id%2 =表 " + id % 2);
            System.out.println(" ");
        }
    }
    @Test
    public void testGoodmod2() {
        for (int i = 0; i < 128; i++) {
            int id = 1000 + i;
            System.out.print("id = " + id);
            System.out.print("    id%2 = 库" + id % 2);
            System.out.print("    id/2%2 =表 " + id / 2 % 2);
            System.out.println(" ");
        }
    }

    @Test
    public void testmod() {
        for (int i = 0; i < 128; i++) {
            int id = 1000 + i;
            System.out.print("id = " + id);
            System.out.print("  id%32 =库 " + id % 32);
            System.out.print("   id/32%32 = 表" + id / 32 % 32);
            System.out.println(" ");
        }
    }
}
